package com.example.pharmacypick.mapper;

import com.example.pharmacypick.dto.PatientDto;
import com.example.pharmacypick.pojo.Patient;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PatientMapper {

    public List<Patient> findAllPatients(PatientDto patientDto);

    void addPatient(Patient patient);

    //修改
    void updatePatient(PatientDto patientDto);

    //删除
    void deletePatient(Long patientRecord);

    //根据id查询病人
    Patient findPatientByPatientRecord(@Param("patientRecord") int patientRecord);


}
